<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>国省自检--${fns:getConfig('productName')}</title>
<link rel="stylesheet" href="${ctx}/styles/gsjcss/common.css">
<script type="text/javascript">
	function btnClick(){
		var url = '${ctx}/stationShape/search.do?projectId=${fns:encodeParamUrl(projectId)}&menuId=${fns:encodeParamUrl(menuId)}';
		var data = {};
		if($('#btnSearch').length>0){ //有搜索按钮的情况下 获取条件进行搜索
			//将条件提取出来  
			//将条件存入data中
			//ajax请求   得到数据
			//loadData(url,data);
		} else {
			loadData(url,data);
		}
	}
	//ajax执行成功之后的回调方法
	function loadDataToTable(data){
		var attData = data['attment'];
        loadAttachment(attData);
	}
</script>
</head>
<body>
	<div id="x_top"></div>
	<tags:message content="${msg}" />
	<form id="checkForm" class="form-horizontal"  method="POST"  name="checkForm" action="${ctx}/stationShape/save.do?left=${fns:encodeParam(left)}&parentId=${fns:encodeParam(parentId)}&projectId=${fns:encodeParam(projectId)}&menuId=${fns:encodeParam(menuId)}">
		<input type="hidden" name="token" value="${token}">
		<div id="show">
			<div id="showTable" class="showTable">
				<jsp:include page="/WEB-INF/views/check/common.jsp"/> 
				<div class="model">
					<div>
						<legend>三、检查条件及设置</legend>
						<div class="content-title" id="condition">
							<div class="content-title" id="condition">
							<div style="margin-right:10px;">
								<span>收费站:</span>
								<select name="stationIds" id="stationsIds">
									<option value=""></option>
	<%-- 								<c:forEach items="${fns:getMoneyOverViewGroupByProjectName()}" var="moneyOverView"  varStatus="idxStatus"> --%>
	<%-- 									<option value="${moneyOverView.id}">${moneyOverView.projectName}</option> --%>
	<%-- 								</c:forEach> --%>
								</select>
							</div>
							<div id="x_s" style="float:right">
								<div class="x_ico"></div>
								<a href="#javascript:void(0)" onclick= "btnClick();"  id= "btnSearch" role="button" >搜索&nbsp;</a>
							</div>
						</div>
						</div>
					</div>
				</div>
				<div class="model">
					<div>
						<legend>四、检索结果</legend>
						<div class="content-title">
							<div class="tabbox">
								<div class="tab">
									<c:forEach items="${childMenuList}" var="menu"  varStatus="idxStatus">
										<a href="javascript:;" <c:if test="${idxStatus.index == 0}">class="on"</c:if> >${menu.name}</a>
									</c:forEach>
							    </div>
							    <div class="content">
							    	<ul>
							    		<c:forEach items="${childMenuList}" var="menu"  varStatus="idxStatus">
							    			<c:if test="${idxStatus.index >= 0}">
								    			<li>
								    				<table style="width:98%;text-align:center;margin-top:5px;" border="1" id="${menu.tag}">
								    					<thead>
									    					<th>序号</th>
									    					<th>操作</th>
									    					<th>发文单位</th>
									    					<th>上传用户</th>
									    					<th>文件名</th>
									    					<th>发文日期</th>
									    					<th>上传日期</th>
									    					<th>文件大小</th>
									    					<th>文件类型</th>
								    					</thead>
								    					<tbody>
								    						
								    					</tbody>
								    				</table>
								    			</li>
								    		</c:if>
							    		</c:forEach>
							        </ul>
							    </div>
							</div>
						</div>
					</div>
				</div>
				<div class="model">
					<div>
						<legend>五、检查评分</legend>
						<div class="content-title" id="checkResult">
						
						</div>
					</div>
				</div>
				<div class="model">
					<div class="content-btn">
						<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存" />
						&nbsp;&nbsp;&nbsp;&nbsp;
						<input id="btnCancel" class="btn" type="button" value="返 回" onclick="toBack()" />
					</div>
				</div>
			</div>
		</div>
	</form>
<script src="${ctxStatic}/js/check/checkCommon.js" type="text/javascript"></script>
</body>
</html>